﻿#pragma warning disable 649    // disable compiler warnings about unassigned fields

namespace SoftSource.Timecard.Web.Data
{
    using System.ComponentModel.DataAnnotations;


    // The MetadataTypeAttribute identifies CategoryMetadata as the class
    // that carries additional metadata for the Category class.
    [MetadataTypeAttribute(typeof(Category.CategoryMetadata))]
    public partial class Category
    {
        internal sealed class CategoryMetadata
        {

            // Metadata classes are not meant to be instantiated.
            private CategoryMetadata()
            {
            }

            [Required]
            [Display(Order = 1)]
            public string Name;

            [Required]
            [Display(Order = 2)]
            public string Abbreviation;

            [Display(AutoGenerateField = false)]
            public int CategoryID;

            [Required]
            [Display(Order = 3)]
            public bool IsActive;
        }
    }
}

#pragma warning restore 649    // re-enable compiler warnings about unassigned fields
